package com.haiyou.dc.thread.test4;

import java.util.Arrays;
import java.util.List;

public class Demo6 {

    public static void main(String[] args) {

        List<Integer> list= Arrays.asList(12,5,3,32);

        int sum = list.parallelStream().mapToInt(a -> a).sum();
        System.out.println(sum);

    }
}
